package com.prj.ufdm.webflux.util;

import org.springframework.http.HttpHeaders;

public class UfdmHttpHeaderUtil {

	public static HttpHeaders wrapHttpHeader(HttpHeaders httpHeaders) {
        httpHeaders.add("Content-Type", "application/json; charset=UTF-8");
        httpHeaders.add("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0");
        httpHeaders.add("Access-Control-Allow-Origin", "*");
        httpHeaders.add("Access-Control-Allow-Methods", "POST, GET, OPTIONS");
        httpHeaders.add("Access-Control-Max-Age", "3600");
        httpHeaders.add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Auth-User-Token");
        return httpHeaders;
	}
}
